{% extends "group/group_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load ietf_filters person_filters textfilters %}
{% load static %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block group_content %}
    {% origin %}
    <h2 class="my-3">Group history</h2>
    {% if can_add_comment %}
        <a class="btn btn-primary"
           href="{% url 'ietf.group.views.add_comment' acronym=group.acronym %}">
            <i class="bi bi-plus"></i>
            Add comment
        </a>
    {% endif %}
    <table class="table table-sm table-striped tablesorter">
        <thead>
            <tr>
                <th scope="col" data-sort="date">Date</th>
                <th scope="col" data-sort="by">By</th>
                <th scope="col" data-sort="action">Action</th>
            </tr>
        </thead>
        {% if events %}
            <tbody>
                {% for e in events %}
                    <tr>
                        <td>{{ e.time|date:"Y-m-d" }}</td>
                        <td>{% person_link e.by %}</td>
                        <td>{{ e.desc|format_history_text }}</td>
                    </tr>
                {% endfor %}
            </tbody>
        {% endif %}
    </table>
{% endblock %}
{% block js %}
    <script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}